﻿<Window x:Class="ServiceManager.TFSIntegration.CreateBugWindow"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="600"  >
    <Window.Resources>
        <Style x:Key="StandardButton"
               TargetType="{x:Type Button}">
            <Setter Property="Foreground"
                    Value="Black" />
            <Setter Property="Margin"
                    Value="10" />
            <Setter Property="Width"
                    Value="50" />
        </Style>
    </Window.Resources>
    <Grid Background="#FFF0F0F0">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>    
            <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Grid Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" Margin="0,0,0,15">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="1.5*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="1.5*" />
                </Grid.ColumnDefinitions>
                <Label Grid.ColumnSpan="4" FontWeight="Bold" VerticalAlignment="Center"  Content="Please select the Team Foundations Server Collection and Project" Margin="5,8,0,7" />
                <Label Grid.Row="2" Grid.ColumnSpan="4" FontWeight="Bold" VerticalAlignment="Center"  Content="The information below will be use to create the bug in TFS" Margin="5,8,0,7" />
                <Label Grid.Column="0" FontWeight="Bold" Grid.Row="1" Content="TFS Collection:" />
                <ComboBox HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1" SelectedItem="{Binding Path=CollectionValue,Mode=TwoWay}" Name="cboCollections" ItemsSource="{Binding Source=Collections,Mode=OneTime}" VerticalAlignment="Top" SelectedValuePath="Key" DisplayMemberPath="Value" SelectionChanged="cboCollections_SelectionChanged" />
                <Label FontWeight="Bold" Grid.Column="2" Grid.Row="1" Content="TFS Project:" />
                <ComboBox HorizontalAlignment="Left" Grid.Column="3" Grid.Row="1" Name="cboProjects" SelectedItem="{Binding Path=ProjectValue,Mode=TwoWay}" ItemsSource="{Binding Source=Projects,Mode=OneTime}" VerticalAlignment="Top" SelectedValuePath="Key" DisplayMemberPath="Value" />
            </Grid>
            <!--<Label FontWeight="Bold" Grid.Column="0" Grid.Row="2" Content="Id:"  />
        <Label Name="txtId" Grid.Column="1" Grid.Row="2" Content="{Binding Path=ID, Mode=OneTime}"   />
        -->
            <Label FontWeight="Bold" Grid.Column="0" Grid.Row="3" Content="Title:"  />
            <Label Name="txtTitle" Grid.Column="1" Grid.Row="3" Content="{Binding Path=Title, Mode=OneTime}"   />
            <Label FontWeight="Bold" Grid.Column="0" Grid.Row="4" Content="Description:" />
            <Label Name="txtDescription" Grid.Column="1" Grid.Row="4" VerticalAlignment="Top"  Content="{Binding Path=Description, Mode=OneTime}" Height="185"     />

        </Grid>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,0,5">
            <Button Name="btnOk" Content="Ok" Style="{StaticResource StandardButton}" Click="btnOk_Click" />
            <Button Name="btnCancel" Content="Cancel" IsCancel="True" Style="{StaticResource StandardButton}" />
        </StackPanel>
    </Grid>
</Window>
